package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.CustomerReservation;
import com.zzyl.vo.CustomerReservationVo;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface CustomerReservationMapper {

    Integer queryDeclineReserNum(Long userId);

    void addReservation(CustomerReservation bean);

    void cancelReservation(Long id, Long userId);

    List<CustomerReservationVo> queryRestCountOnEveryTime(LocalDate localDate);

    Page<CustomerReservationVo> queryPage(Integer status, Long userId);

    void expireReservation(LocalDateTime now);
}
